package com.bafa.objects;

import java.io.Serializable;

import com.bafa.objects.season.Season;
import com.bafa.services.RetrieveServices;

public class TeamAward implements Serializable{

	private int seasonId;
	private int division;
	private boolean champion;
	private boolean runnerup;
	public boolean isChampion() {
		return champion;
	}
	public void setChampion(boolean champion) {
		this.champion = champion;
	}
	public int getDivision() {
		return division;
	}
	public void setDivision(int division) {
		this.division = division;
	}
	public boolean isRunnerup() {
		return runnerup;
	}
	public void setRunnerup(boolean runnerup) {
		this.runnerup = runnerup;
	}
	public int getSeasonId() {
		return seasonId;
	}
	public void setSeasonId(int seasonId) {
		this.seasonId = seasonId;
	}
	
	public String getAwardTitle(){
		Season season = RetrieveServices.getSeason(""+seasonId);
		return season.getName()+" "+season.getYear()+" "+season.isLeague()+" "+((division>0)?"Division "+division:"");
	}
}
